package com.hjq.mallorder.controller;

import com.hjq.common.utils.PageUtils;
import com.hjq.common.utils.R;
import com.hjq.mallorder.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @auther HJQ
 */
@RestController
public class RabbitMQController {
    @Autowired
    private OrderService orderService;
    @RequestMapping("/rabbit/receive")
    //@RequiresPermissions("mallorder:order:list")
    public R receiveMsg(){

        orderService.receiveMsg();
        return R.ok();
    }
}
